Conversation
ab19ba3 to
8c5e2c9
Compare
app/assets/javascripts/users.coffee
Outdated
| @@ -0,0 +1,3 @@ | |||
| # Place all the behaviors and hooks related to the matching controller here. | |||
There was a problem hiding this comment.
file này k dùng thì xóa đi nhé
app/assets/stylesheets/users.scss
Outdated
| @@ -0,0 +1,3 @@ | |||
| // Place all the styles related to the Users controller here. | |||
app/helpers/users_helper.rb
Outdated
| @@ -0,0 +1,2 @@ | |||
| module UsersHelper | |||
app/models/user.rb
Outdated
| validate :check_phone | ||
| validate :check_date | ||
| has_secure_password | ||
| attr_accessor :test |
There was a problem hiding this comment.
cái này có dùng ở đâu không
app/models/user.rb
Outdated
| private | ||
| def check_phone | ||
| if self.phone | ||
| if (self.phone.length==10 && self.phone[0]=="0") |
There was a problem hiding this comment.
xóa () + viết cách nhau 1 dâu cách nhé
config/routes.rb
Outdated
| @@ -1,4 +1,6 @@ | |||
| Rails.application.routes.draw do | |||
| get 'users/new' | |||
| @@ -1,10 +1,10 @@ | |||
| // This is a manifest file that'll be compiled into application.js, which will include all the files | |||
| // This is a manifest file that"ll be compiled into application.js, which will include all the files | |||
There was a problem hiding this comment.
checkout file này ra mấy chỗ này là comment không cần sửa làm j cả
| * | ||
| * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | ||
| * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. | ||
| * or any plugin"s vendor/assets/stylesheets directory can be referenced here using a relative path. |
There was a problem hiding this comment.
tương tự checkout file này ra khỏi pull
app/helpers/application_helper.rb
Outdated
| @@ -1,5 +1,5 @@ | |||
| module ApplicationHelper | |||
| def full_title page_title='' | |||
| def full_title page_title="" | |||
There was a problem hiding this comment.
check lại ident trong file này đi nhé
app/models/user.rb
Outdated
| end | ||
| end | ||
| end | ||
| end No newline at end of file |
There was a problem hiding this comment.
thiếu end file, thêm 1 dòng trống ở tân jcungf nhé
|
|
||
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
| <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track": "reload" %> |
There was a problem hiding this comment.
sử dụng 1 dấu cách để ngăn
config/environment.rb
Outdated
| @@ -1,5 +1,5 @@ | |||
| # Load the Rails application. | |||
| require_relative 'application' | |||
| require_relative "application" | |||
config/environments/development.rb
Outdated
|
|
||
| # Enable/disable caching. By default caching is disabled. | ||
| if Rails.root.join('tmp/caching-dev.txt').exist? | ||
| if Rails.root.join("tmp/caching-dev.txt").exist? |
config/environments/production.rb
Outdated
| # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache | ||
| # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX | ||
| # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache | ||
| # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX |
config/environments/test.rb
Outdated
| # test suite. You never need to work with it otherwise. Remember that | ||
| # your test database is "scratch space" for the test suite and is wiped | ||
| # and recreated between test runs. Don't rely on the data there! | ||
| # and recreated between test runs. Don"t rely on the data there! |
| # If you change this key, all old signed cookies will become invalid! | ||
|
|
||
| # Make sure the secret is at least 30 characters and all random, | ||
| # no regular words or you'll be exposed to dictionary attacks. |
There was a problem hiding this comment.
xóa file này bằng lệnh git rm -r --cache và cho vòa gitigonore để không pushs lên
LICENSE
Outdated
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| of this software and associated documentation files (the 'Software'), to deal |
There was a problem hiding this comment.
checkout ra khỏi pull đi em ơi
Rakefile
Outdated
| # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
|
||
| require_relative 'config/application' | ||
| require_relative "config/application" |
| module ApplicationHelper | ||
| def full_title page_title='' | ||
| base_title="Ruby on Rails Tutorial Sample App" | ||
| def full_title page_title = "" |
app/views/layouts/_header.html.erb
Outdated
| </div> | ||
| </header> No newline at end of file | ||
| </header> | ||
|
No newline at end of file |
There was a problem hiding this comment.
để dòng blank nhé, k phải là thêm dòng có dấu cách
|
|
||
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
| <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> | ||
| <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track": "reload" %> |
There was a problem hiding this comment.
1 dấu cashc để ngăn em ơi, sau cái tag kìa
db/seeds.rb
Outdated
| # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) | ||
| # Character.create(name: 'Luke', movie: movies.first) | ||
| # movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }]) | ||
| # Character.create(name: "Luke", movie: movies.first) |
public/404.html
Outdated
| <html> | ||
| <head> | ||
| <title>The page you were looking for doesn't exist (404)</title> | ||
| <title>The page you were looking for doesn"t exist (404)</title> |
public/422.html
Outdated
| <div> | ||
| <h1>The change you wanted was rejected.</h1> | ||
| <p>Maybe you tried to change something you didn't have access to.</p> | ||
| <p>Maybe you tried to change something you didn"t have access to.</p> |
public/500.html
Outdated
| <html> | ||
| <head> | ||
| <title>We're sorry, but something went wrong (500)</title> | ||
| <title>We"re sorry, but something went wrong (500)</title> |
| @@ -1,4 +1,4 @@ | |||
| require 'test_helper' | |||
| require "test_helper" | |||
45410bd to
9fd634c
Compare
No description provided.